#ifndef JLOG_P_H
#define JLOG_P_H

#include <QTECore/qteglobal.h>
#include <QLoggingCategory>

namespace QTE
{

inline const constexpr char *privateCategoryName() { return "QTE.LOG"; }

QTECORE_EXPORT const QLoggingCategory &privateCategory();

#define jDebug(...)    qCDebug(QTE::privateCategory(), __VA_ARGS__)
#define jInfo(...)     qCInfo(QTE::privateCategory(), __VA_ARGS__)
#define jWarning(...)  qCWarning(QTE::privateCategory(), __VA_ARGS__)
#define jError(...)    qCCritical(QTE::privateCategory(), __VA_ARGS__)
#define jFatal         QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC, jLogger?jLogger->category().categoryName():"default").fatal

} //namespace QTE


#endif //JLOG_P_H
